package cn.edu.hbsi.domain;

import java.util.List;

public class Area
{
    private Integer aId;
    private String areaName;
    private List<Driver> drivers;

    public Area() {
    }

    public Area(String areaName, List<Driver> drivers) {
        this.areaName = areaName;
        this.drivers = drivers;
    }

    public Area(Integer aId, String areaName, List<Driver> drivers) {
        this.aId = aId;
        this.areaName = areaName;
        this.drivers = drivers;
    }

    public Integer getaId() {
        return aId;
    }

    public void setaId(Integer aId) {
        this.aId = aId;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public List<Driver> getDrivers() {
        return drivers;
    }

    public void setDrivers(List<Driver> drivers) {
        this.drivers = drivers;
    }

    @Override
    public String toString() {
        return "Area{" +
                "aId=" + aId +
                ", areaName='" + areaName + '\'' +
                ", drivers=" + drivers +
                '}';
    }
}
